#include <iostream>
#include <sstream>
#include <string>
#include <stdint.h>
#include "read_dump_data.h"
#include "dump_data.h"

using namespace std;

string g_data_in = 
"0x78 0x00 0x00 0x00 0x83 0x00 0x00 0x00 "
"0x78 0x01 0x01 0x78 0x00 0x87 0xff 0x00 "
"0x01 0x00 0x00 0x18 0xca 0x53 0xa6 0xd6 "
"0x8b 0xa6 0x5d 0x65 0x76 0x4a 0x14 0x43 "
"0x01 0x8e 0x29 0x65 0xeb 0x5b 0x9e 0x94 "
"0x30 0xd9 0x64 0xfa 0x91 0x4d 0x94 0x43 "
"0x1d 0x5b 0xee 0x98 0xff 0xf4 0xff 0xa4 "
"0x3c 0x7e 0x91 0x61 0x27 0x22 0x4d 0x15 "
"0x14 0x14 0x37 0xe4 0x23 0x4d 0x61 0xed "
"0x5b 0xd5 0x53 0x89 0xd5 0x51 0x26 0x56 "
"0x5f 0xf6 0x4f 0x29 0x6b 0x85 0x99 0x2c "
"0x35 0x02 0x39 0x30 0x11 0x94 0x6e 0xb5 "
"0x98 0x31 0x44 0x07 0x99 0x1d 0xa6 0xbe "
"0x75 0x51 0xdd 0xd0 0x72 0xa5 0x8c 0x59 "
"0x51 0x72 0xd4 0x72 0x05 0x8a 0x65 0x71 "
"0x33 0xc8 0xff 0xd4 0x49 0x4d 0x86 0x34 "
"0x14 0x16 0xe5 0x6b 0x6d 0x03 0x00 0xfc "
"0xb8 0x33 0x05 0x00";

int main(int argc, char *argv[])
{
	std::istringstream iss (g_data_in);

	std::vector<uint8_t> data = read_dump_data(iss);

	dump_data("data: ", (const char *) data.data(), (int) data.size());
	return 0;
}
